<?php 

include './Core/function.php';
include './Core/Upload.class.php';




$config=array('UPLOAD_PATH'=>'./aaa/',
			  'UPLOAD_NAME'=>'uniqid',
			  'UPLOAD_TYPE'=>'.jpg,.png,.gif',
			  'UPLOAD_MAX_FILE_SIZE'=>'5000000000',);    //有传参数改变默认路径，就选择传的路径
// $config=array();  //没有传参数，就默认Upload.class.php 里默认的路径，用三元表达式做判断




$Upload = new Upload($config);
$Upload->save();







 ?>